#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@File    ：health.py
@Author  ：平
@Date    ：2025/9/28 10:03 
"""
from fastapi import APIRouter, Request

from app.schema.base_response import BaseResponse

router = APIRouter(prefix="/health")


@router.get("", response_model=BaseResponse)
async def health(request: Request):
    return BaseResponse(message="成功", data=getattr(request.state, 'session', {}))
